﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace EcoSystem
{
    [NotMapped]
    [Serializable]
    public class ReportSourceConfig
    {
        /// <summary>
        /// API查询接口
        /// </summary>
        public string ApiConfigCode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string RemoteUrl { get; set; }

        /// <summary>
        /// 部记录数
        /// </summary>
        public string TotalField { get; set; }

        /// <summary>
        /// 数据行字段
        /// </summary>
        public string ItemsField { get; set; }

        /// <summary>
        /// 数据行处理脚本
        /// </summary>
        public string ItemsHandler { get; set; }

        /// <summary>
        /// 需要处理数据结果
        /// </summary>
        public Nullable<bool> RequireHandler { get; set; }

        /// <summary>
        /// 汇总行数据键名
        /// </summary>
        public string SummaryField { get; set; }

        /// <summary>
        /// 是否分页
        /// </summary>
        public bool IsPaged { get; set; }

        /// <summary>
        /// 包含汇总数据
        /// </summary>
        public bool HasSummary { get; set; }
    }

}
